﻿namespace CKFinder.Connector
{
    using System;
    using System.Text.RegularExpressions;

    internal static class RegexLib
    {
        private static Regex _ConfigServerPlaceholders;

        public static Regex ConfigServerPlaceholders
        {
            get
            {
                if (_ConfigServerPlaceholders == null)
                {
                    _ConfigServerPlaceholders = new Regex(@"%SERVER\(\s*([^)]+?)\s*\)%", RegexOptions.Singleline | RegexOptions.Compiled);
                }
                return _ConfigServerPlaceholders;
            }
        }
    }
}

